<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ko">
<head>
    <meta http-equiv='Content-Type' content='text/html; charset=UTF-8'> 
    <link type="text/css" href="/static_media/css/outlandPollStatus.css" rel="stylesheet" />  
    <title>Status </title>

    <script type="text/javascript">
    $(function(){
        }
        );

    </script>

</head>

<body>
<div>
<table id="stTable">
    <thead>
        <tr>
            <th ROWSPAN=3>
                이름
            </th>
            {% for cateGroup in menuList %}
            <th COLSPAN={{ cateGroup.len }}>
                {{ cateGroup.cate.name }}
            </th>
            {% endfor %}
        </tr>
        <tr>
            {% for cateGroup in menuList %}
            {% for shopGroup in cateGroup.shopList %}
            <th COLSPAN={{ shopGroup.menuList|length }}>
                {{ shopGroup.shop.name }}   
            </th>
            {% endfor %}
            {% endfor %}
        </tr>
        <tr>
            {% for cateGroup in menuList %}
            {% for shopGroup in cateGroup.shopList %}
            {% for menu in shopGroup.menuList %}
            <th class="menu">
                {{ menu.name }}   
            </th>
            {% endfor %}
            {% endfor %}
            {% endfor %}
        </tr>
    </thead>
    <tbody>
        {% for user in userReco %}
        <tr>
            <td>
                {{user.user}}
            </td>
            {% for reco in user.recoList %}
            <td class="{% ifequal reco 'yes' %}yes{% endifequal %}{% ifequal reco 'no' %}no{% endifequal %}{% ifequal reco 'dono' %}dono{% endifequal %}">
            </td>
            {% endfor %}
        </tr>
        {% endfor %}
    </tbody>
</table>
</div>
    
</body>

</html>
